package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.basic.util.Constant;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.util.Date;

//店铺
@Data
@Table(name = "t_shop")
public class Shop extends BaseDomain {
    //名字
    @NotBlank(message = "店铺名字必填")
    private String name;
    //电话
    private String tel;
    //注册时间
    @Column(name = "register_time")
    private Date registerTime = new Date();
    //店铺状态
    private Integer state = Constant.Shop.STATE_WAIT_AUTID;
    //地址
    private String address;
    //店铺招牌
    private String logo;
    //店铺的店长id  指向t_employee表的id
    @Column(name = "admin_id")
    private Long adminId;

    /** 店长信息 **/
    private Employee admin;
}